#ifndef _TH_KERMIT_H
#define _TH_KERMIT_H

/* refer to KERMIT PROTOCOL MANUAL Sixth Edition */

#define KERM_START_CHAR     0x01
#define KERM_EXIT_CHAR      0x03
#define KERM_ESCAPE_CHAR    '#'
#define KERM_END_CHAR       0x0d

#define KERM_TYPE_DATA  'D'
#define KERM_TYPE_SEND  'S'
#define KERM_TYPE_ACK   'Y'
#define KERM_TYPE_NACK  'N'
#define KERM_TYPE_BREAK 'B'

unsigned int kermit_recv(void *addr);

#endif /* _TH_KERMIT_H */
